package com.shoux.api.config;

import com.alibaba.fastjson.JSONObject;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoZhi
 * Date: 2022/3/25
 * Time: 16:47
 * Description:
 */
@Configuration
@ConfigurationProperties(prefix = "my-api.ansuo")
public class MyApiProperties {
    /**
     * 接口ID
     */
    private String transcode;
    /**
     * 查询来源系统
     */
    private String source;
    /**
     * 查询人用户ID
     */
    private String userid;
    /**
     * 查询人所属机构
     */
    private String orgid;
    /**
     * 查询账号
     */
    private String account;
    /**
     * 参数对象
     */
    private JSONObject params;

    public String getTranscode() {
        return transcode;
    }

    public void setTranscode(String transcode) {
        this.transcode = transcode;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public JSONObject getParams() {
        return params;
    }

    public void setParams(JSONObject params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "MyApiProperties{" +
                "transcode='" + transcode + '\'' +
                ", source='" + source + '\'' +
                ", userid='" + userid + '\'' +
                ", orgid='" + orgid + '\'' +
                ", account='" + account + '\'' +
                ", params=" + params +
                '}';
    }
}
